﻿using System;
using Microsoft.Maps.MapControl;

// this implementation based on code at http://z-maloumi.com/blog/2010/12/bing-map-add-custom-tile-google-map-openstreetmap-to-a-silverlight-application/

namespace MyFloridaHouse.libSvOpenDistricts.MapTileLayers
{
    public abstract class CustomMapTile : LocationRectTileSource
    {
        public CustomMapTile(string urilink)
        {
            UriFormat = urilink;
        }

        public override Uri GetUri(int x, int y, int zoomLevel)
        {
            return new Uri(string.Format(this.UriFormat, new Random().Next() % 4, x, y, zoomLevel));
        }

    }

}
